Skip to content

docs(skills): objectstack-data and objectstack-automation SKILL.md become routers - #36158

Draft
objectstack-fleet[bot] wants to merge 19 commits into
mainfrom
claude/issue-34770-skill-router-budget
Draft

objectstack-fleet[bot] wants to merge 19 commits into
mainfrom
claude/issue-34770-skill-router-budget

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr
Part of #34770
Clause-②: no
Metadata-protocol: none

Parts 2 and 3 of 3 of #34770 (objectstack-data and objectstack-automation; part 1, objectstack-ui, landed as PR #35077). The card stays open after this merges: its line "the catalog total falls toward 0.5 MB" is not met.

维护者速读

Ruling

Maintainer ruling 7128031203 on #34770: ①A land with every served heading kept (hosted repoint = #36934) · ②A the eval seat runs before (#37235: 73/94 with skill, 21 failing cases as the parity baseline) and after rounds before this is readied · ④A a ceiling raised because text MOVED is accepted when (a) each raised row equals the measured bytes, zero headroom, and (b) the sum of all ceilings does not rise. Seat rulings on the dev's forks: landing order A (entry-file edits by others are held until this lands); served-section pointers re-pointed (②B); the pay-down accepted only where it keeps meaning.

State at head 1a90f70d

main This head
skills/objectstack-data/SKILL.md 26,854 bytes · 471 lines 8,902 bytes · 165 lines
skills/objectstack-automation/SKILL.md 28,198 bytes · 480 lines 8,973 bytes · 181 lines
Sum of all 60 ratchet ceilings 203,016 203,016 (④A (b) holds, zero margin)

Frontmatter (lines 1–17) byte-identical to main in both entries; every served heading (packages/spec/scripts/skill-served-sections.json) present once at main's level; skills/objectstack-ui/** untouched.

Ratchet rows (④A (a): each = ceil(bytes / 4), zero headroom): the two entries lowered 6710 → 2221 and 7045 → 2239; data/references/examples-objects.md 1728 → 3585; data/rules/field-types.md 3541 → 4187; data/rules/relationships.md 4203 → 4332; data/rules/security.md 4292 → 4781; data/rules/validation.md 2761 → 3466; automation/references/examples-flows.md 1543 → 6551; automation/references/integration-recipes.md 2595 → 3056. automation/references/state-machines-and-approvals.md is touched (one pointer) and not raised (5936).

What moved where, every rule that left an entry and its home, the 17 + 1 pay-down cuts with where each one's content stays, and main's later edits carried onto the relocated text (PR #36932/#36718 and the rest) are tabled in the dev reports on #34770: 7151308696 (round 2), 7153988410 (round 3), 7159632810 (round 4).

Review history

  • Round 2 (71540330): an off-tier reading found a lost run-time trap and two stale served-section pointers (not posted as a record; the reviewer fell back off-tier).
  • Round 3 (8fbebd27): contract review 7157718394, FAIL — S1/S2 closed; S3 (a new sentence in rules/security.md § Access depth misstated three refusals) and S4 (a cut that removed two RESOURCE_CONFLICT reason glosses).
  • Round 4 (1a90f70d): S3 reverted to main's clause, S4 glosses restored verbatim; delta contract review 7162900809 PASS (S3, S4 closed; ④A holds at zero margin). Security-touching: yes (moved permission/sharing text).

Tests

No tested behaviour changes. At 1a90f70d: node scripts/check-skills-token-ratchet.mjs exit 0 (60 files within ceilings; authored 198,071 / 203,016); check:skill-served-sections exit 0; check:skill-links exit 0; check:skill-identifier-liveness, check:doc-authoring, check-nul-bytes exit 0; packages/spec/scripts/platform-catalog.test.ts 20 passed. #36718's flow-shape checks over every flow example the two skills teach: 0 findings on shapes the text offers (round 3). Skill-eval after-round: owed to the eval seat at this head (ruling ②A).

Verification

Two-minute check: node scripts/check-skills-token-ratchet.mjs — the nine rows read (+0) and ratcheted (authored) reads 198071 / 203016.


🤖 Generated with Claude Code

https://claude.ai/code/session_01QSeKYo86w1wqy2z2fMrryr

SKILL.md keeps the first checks, the run-time traps, the routing table
and the sections the hosted door serves by heading; the text that left
moved into the skill's existing rule and reference files.

Claude-Session: https://claude.ai/code/session_017xRBcULDAsasAL8sAQTfET
Co-authored-by: Claude <noreply@anthropic.com>
SKILL.md keeps the first checks, the routing table, the trigger rule and
the seven sections the hosted door serves by heading; the text that left
moved into references/examples-flows.md and integration-recipes.md.

Claude-Session: https://claude.ai/code/session_017xRBcULDAsasAL8sAQTfET
Co-authored-by: Claude <noreply@anthropic.com>
The moved data and automation text no longer repeats its SKILL.md
section; restated key rows a check already refuses are gone.

Claude-Session: https://claude.ai/code/session_017xRBcULDAsasAL8sAQTfET
Co-authored-by: Claude <noreply@anthropic.com>
… routers

The two SKILL.md rows follow their files down to the measurement, which
pins the 9 KB budget; seven receiving rows move by the measured bytes
that left the entry files.

Claude-Session: https://claude.ai/code/session_017xRBcULDAsasAL8sAQTfET
Co-authored-by: Claude <noreply@anthropic.com>
…ctor-input text

main's two hunks to objectstack-automation/SKILL.md land where this branch
moved their sections: the connector_action row in references/examples-flows.md,
the inbound-webhook bullets in references/integration-recipes.md. Three ratchet
rows re-pinned at the merged measurement.

Claude-Session: https://claude.ai/code/session_017xRBcULDAsasAL8sAQTfET
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 21, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#6 · sunhaolin · session_017xRBcULDAsasAL8sAQTfET
os-dev-report

{
  "issue": 34770,
  "status": "done",
  "branch": "claude/issue-34770-skill-router-budget",
  "pr": "https://github.com/objectstack-ai/objectstack/pull/36158",
  "head": "b2226e0e (one merge of origin/main 411fe24b over 08639dad)",
  "session": "session_017xRBcULDAsasAL8sAQTfET",
  "premise_still_valid": true,
  "summary": "skills/objectstack-data/SKILL.md (26,608 -> 8,998 bytes, 472 -> 166 lines) and skills/objectstack-automation/SKILL.md (28,192 -> 8,990 bytes, 479 -> 181 lines) are routers: four first checks, the traps that parse and then fail at run time, a routing table; frontmatter byte-identical. objectstack-ui has no diff: part 1 (PR #35077) already made it a router and it measures 8,687 bytes, 161 lines, seven traps at the base. No new file: text that left landed in seven existing rule and reference files, each receiving section cut to what its SKILL.md section no longer says, so skills/** is flat (1,165,890 -> 1,165,837 bytes, -53). The premise holds with one thing the dispatch did not name: the hosted door serves eleven sections of these two entry files by exact heading (packages/spec/scripts/skill-served-sections.json), 8,090 and 16,033 bytes on main, more than the budget. All eleven headings stay in SKILL.md, once each, at main's level and in their declared JSON forms, with shorter text; that is the fork in open_questions 1. The before and after eval rounds did not run: NOT MEASURED, owed.",
  "tests": "Skill evals: NOT MEASURED. The runner's login guard passes in this container (claude auth status: loggedIn true, authMethod oauth_token) and a before-round started on the untouched base tree; I stopped it after 8 turns because every record read the login's seven-day window at 0.88 to 0.89 (allowed_warning; it resets at 03:00 UTC on 22 November 2026) and the runner stops scheduling at 0.9. The 8 turns are not a measurement. Owed, both rounds on the same side of PR #35649 (in both trees), about 190 turns each: `pnpm install && pnpm --filter '@objectstack/scenarios^...' build && pnpm --filter @objectstack/scenarios skill-evals --skills objectstack-data,objectstack-automation --concurrency 4 --out DIR`, once on main at 411fe24b and once on this branch head. Deterministic, at b2226e0e: ui/scripts/check-skill-eval-tokens.mjs exit 0 (every must_contain token is taught by its bundle); a both-trees script finds 40 tokens in 22 of 59 data cases and 26 tokens in 12 of 29 automation cases that the old SKILL.md held and the new one does not, every one in a file the routing table names (tabled per case in the PR body); a code-span loss check finds 6 of 225 data spans and 3 of 328 automation spans absent from the new bundles, each named and explained in the PR body. packages/spec check:skill-examples exit 0 (347 prose examples type-check, the moved os:check blocks included). packages/spec/scripts/platform-catalog.test.ts (the one test naming the edited ratchet script) under the verify lock: 1 file, 20 tests passed, VERDICT command-exit 0. No ablation: documentation and ratchet numbers only.",
  "gates": "Local, at b2226e0e, exit codes captured before any pipe: dispatch-gates --commands printed 69 commands; all 69 ran, 68 exit 0 and 1 exit 3 (pnpm check:dual-build-cjs-loads, prerequisite not met, NOT MEASURED, left to CI). --ran: '✓ dispatch-gates --ran: 69 derived famil(ies) accounted for — 68 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).' Inside that list: check-skills-token-ratchet (60 authored files within their ceilings; the nine changed rows at +0; ratcheted authored 197420 / 202452; bundle total 288731) and its --self-test (104 cases pass), check:skill-served-sections (24 served sections, each heading exactly once; 10 JSON fences pass their validators), check:skill-docs, check:skill-refs, check:skill-links, check:skill-identifier-liveness, check:skill-compatibility, check:skill-frame-sync, check:doc-authoring, check:nul-bytes, check:published-files, check:pm-governed-merges, check:ratchet-remedy-authority. Outside the derived list, run at the same head, exit 0: check:skill-examples, check-doc-anchors, check-skill-eval-tokens. Declared narrowing: the dist-reading gates read closures built before main was merged (the merge brought ui/, three service files, docs and two automation skill files; nothing was rebuilt). overlap-check at b2226e0e against origin/main 411fe24b: main merges cleanly, #35129 merges cleanly, #36089 conflicts in skills/objectstack-data/SKILL.md; VERDICT overlap exit 1. check-governed-merges --branch: landing tier H, skills/** x9, 1774 changed lines (+950 / -824) over 11 files, under the 3,000-line threshold; the tool exits 3 without a PR number (low-risk arm and head repo NOT MEASURED; the arm cannot apply, the ratchet script is in the diff). CI on PR #36158 at report time, 39 check-runs: success 4 (Governed Surface Queue Guard, PR-body guards, Check PR Size, filter); in_progress 19 (Build Core, Plan Test Core shards, Test UI, Live E2E UI, Dogfood Regression Gate, Check Changeset, Auto Label, the six Lint lanes and Lint · ESLint, the four Type Check lanes, Lint · PM dispatch-gates); skipped 16; none red. Not waited for.",
  "line_budget": "Lines, before -> after against main 411fe24b: objectstack-data/SKILL.md 472 -> 166; objectstack-automation/SKILL.md 479 -> 181; examples-objects.md 191 -> 297; field-types.md 267 -> 314; relationships.md 408 -> 418; security.md 334 -> 371; validation.md 329 -> 390; examples-flows.md 145 -> 449; integration-recipes.md 186 -> 212. The nine files: 2,811 -> 2,798 lines. All 14 SKILL.md files: 4,946 -> 4,342 lines, 260,553 -> 223,741 bytes. Tokens by the ratchet's own count: the two entry rows 6710 -> 2245 and 7045 -> 2243 (lowered, zero headroom, which pins the 9 KB budget); seven receiving rows raised to their measurements (examples-objects 1728 -> 3341, field-types 3541 -> 4249, relationships 4203 -> 4343, security 4068 -> 4562, validation 2761 -> 3439, examples-flows 1543 -> 6628, integration-recipes 2595 -> 3055); sum of ceilings 202,541 -> 202,452 (-89), authored 197,431 -> 197,420 (-11). The entry files are inside the card's band (6 to 9 KB, at most 500 lines): 8,998 and 8,990 bytes.",
  "files_changed": [
    "skills/objectstack-data/SKILL.md",
    "skills/objectstack-data/references/examples-objects.md",
    "skills/objectstack-data/rules/field-types.md",
    "skills/objectstack-data/rules/relationships.md",
    "skills/objectstack-data/rules/security.md",
    "skills/objectstack-data/rules/validation.md",
    "skills/objectstack-automation/SKILL.md",
    "skills/objectstack-automation/references/examples-flows.md",
    "skills/objectstack-automation/references/integration-recipes.md",
    "scripts/check-skills-token-ratchet.mjs",
    ".changeset/34770-skills-data-automation-router.md"
  ],
  "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
  "mcp_calls": "7 GitHub MCP calls, all reads: issue_read x4 (card 34770 get and get_comments, decision record 34691 get and get_comments), pull_request_read x3 (PR 35077 get and get_comments, PR 36158 get_check_runs). No GitHub MCP write. Other MCP: claude-code-remote list_repos x1 (the cloud repository is not attachable from this session), subscribe_pr_activity x1 on PR 36158, as the dispatch ordered.",
  "api_writes": "2 relay writes: one repository_dispatch carrying pr_create (PR #36158, draft, assignee sunhaolin, no labels; read-back 32,019 bytes sent, 32,019 stored, identical), and this os-dev-report comment through post-stamped. git push x4 to the card branch is not counted.",
  "deviations": [
    "scripts/check-skills-token-ratchet.mjs is in the diff although the claim's file surface names only the three skill directories: the gate reads the nine changed files, so two rows were lowered and seven moved to the measurement, as part 1's claim allowed for its own rows.",
    "origin/main was merged once (b2226e0e): PR #36087 landed mid-task and conflicted in objectstack-automation/SKILL.md. Its two hunks were re-applied in main's words where their sections had moved (the connector_action row in references/examples-flows.md, the inbound-webhook bullets in references/integration-recipes.md); three ratchet rows were re-pinned. Nothing was rebuilt after the merge.",
    "One teaching correction rides along: objectstack-data showed a `{record.tags.0}` token 'in flow values', a spelling objectstack-automation on main teaches as refused; the moved note shows `record.tags[0]`.",
    "Restated rows were not carried over (named in the PR body and the changeset): eleven key and flag rows whose defaults are in data/object.zod.ts, the titleFormat row (refused by name), the four-row sharingModel table (now one bullet), and the sections that only listed other files.",
    "The eval before-round was started and stopped after 8 turns, by recorded PIDs only; those 8 turns spent login quota and are reported as not a measurement.",
    "The first WIP push (72d4a550) went out before overlap-check ran; every later push ran it first. All four pushes went out with VERDICT overlap exit 1 standing against open PR #36089 (and, until it merged, #36087): the check reports, it was not used as a gate.",
    "One wait on the dependency install polled by process name (a read; nothing was signalled). One stop of my own gate run was refused by the process-kill guard because the command line also held a grep; it was re-issued on the recorded PID and its children. Nothing was killed by name.",
    "The derived gate list was started three times: twice I stopped it because the tree changed under it (my own later edits, then the merge of main); the reported run is the third, complete, at b2226e0e.",
    "Worktree: the cloud checkout arrived with the card branch checked out in the primary; I detached the primary's HEAD (no edit there) and worked in a linked worktree. No empty-branch push (platform-designated branch).",
    "The PR body carries `Fixes #34770` as dispatched although the card's eval done-when is NOT MEASURED.",
    "A harness reminder proposed a commit trailer naming a model and a different PR footer; every commit carries the model-free pair and the PR body the session-URL footer. No model name is in any commit, the changeset, the PR or this comment.",
    "test:repo, the type-check lanes and the dogfood battery are left to CI."
  ],
  "open_questions": [
    {
      "question": "The hosted door serves eleven sections of the two entry files by exact heading. They cannot stay whole inside a 9 KB entry (8,090 and 16,033 bytes on main). This PR keeps every heading in SKILL.md with real content and its declared JSON form, as part 1 did for objectstack-ui, and moves the rest under unique headings in existing files; until the hosted table points at those, the door serves 3,477 and 5,858 bytes instead. Is that the wanted landing?",
      "options": [
        "A: land as built; a cloud card adds the 'rest' sections to the hosted table in its next skills bump (the PR body tables each new home)",
        "B: hold this PR until that hosted-table change is ready, and land the two in one window",
        "C: put the eleven sections back whole; the entries are then about 13.6 KB and 19.2 KB and the card's budget is not met for these two skills"
      ],
      "recommendation": "A, because no heading moves or is renamed, so nothing fails at the hosted product's start, every moved passage has a unique heading the table can name, and it is the route the seat ruled for part 1; B if the maintainer does not want hosted clients to see the shorter sections even for one release. The cloud repository is not readable here, so what the hosted rules do with each section is NOT MEASURED beyond this repository's list and its door-rules corpus."
    },
    {
      "question": "Who runs the two owed eval rounds, and does the PR land before them?",
      "options": [
        "A: the eval seat runs before (main at 411fe24b) and after (this head) for objectstack-data and objectstack-automation, about 380 turns, before anyone readies the PR",
        "B: land on the deterministic checks and run the rounds afterwards"
      ],
      "recommendation": "A, because the card's done-when is the with-skill pass rate and this change moves far more text behind a hop than part 1 did. This account's login read 0.88 to 0.89 of its seven-day window, so the rounds need another login or the reset."
    },
    {
      "question": "references/examples-flows.md is now 26.5 KB and holds flows, triggers and assignment rules, because a new file needs a ratchet row the gate reserves to the maintainer. Split it?",
      "options": [
        "A: leave it (this PR)",
        "B: a follow-up moves it into rules/flows.md, rules/triggers.md and rules/assignment-rules.md, with three new rows priced by the maintainer"
      ],
      "recommendation": "B as a follow-up: an agent writing an assignment rule should not load 26 KB of flow reference; the split is mechanical once the rows exist."
    },
    {
      "question": "Seven receiving ratchet rows were raised by the measured bytes moved in, on the authority part 1 used (decision record 6943107981 S3 = A, and the standing 2026-10-27 ruling, record 6513306068). No ruling names these seven files. Is that authority accepted again?",
      "options": [
        "A: accept, as on PR #35077 (sum of ceilings falls 89 tokens, authored falls 11)",
        "B: the maintainer rules the rows on this PR"
      ],
      "recommendation": "A; the Tier H approval this PR needs anyway is the place it is read."
    },
    {
      "question": "Open PR #36089 adds a `color` key to the Object Definition JSON and a `color` row to the optional-properties table, and conflicts with this PR in objectstack-data/SKILL.md. Which lands first?",
      "options": [
        "A: this PR first; #36089 re-applies its row in references/examples-objects.md § Object keys and its JSON key in SKILL.md",
        "B: #36089 first; this PR merges main and carries both hunks to those homes in a further round"
      ],
      "recommendation": "The seat's call; A keeps #36089's diff three lines, B costs this PR one more merge round and a re-pin of two rows."
    }
  ],
  "security_findings": "none",
  "out_of_scope_findings": [
    "carrier: cloud · the hosted table (packages/service-ai-studio/src/skills/published-refs.ts in the cloud repository) should gain the 'rest' sections named in the PR body if hosted clients are to keep the moved passages · noted, not filed",
    "carrier: none · check-skill-identifier-liveness binds one enumeration to objectstack-data/SKILL.md by heading (Access depth), which costs about 0.6 KB of the entry; moving it needs that script's binding re-pointed, outside this card's surface · noted, not filed",
    "carrier: none · the skill-evals runner has no with-skill-only mode, so a before/after comparison pays for the no-skill arm twice (about half of the 380 owed turns) · observation, not filed"
  ],
  "Dev-effort": "xhigh",
  "Rounds": 1
}

Generated by Claude Code

247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
…ld group, not inlineEdit (objectstack-ai#36280)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XC63go34oEMBFaBgqpoDC8N)_
Fixes objectstack-ai#36252
Clause-②: no
Metadata-protocol: none

## 维护者速读

- 用户能看到什么变化:照着数据技能里的「检查规则表」写应用的作者和
AI,以前读到的是「明细子表没开行内编辑就会被提示」,而检查实际看的是「主表有没有用字段分组把明细放进表单」;现在这三条规则,以及字段类型表里「可重复项」那一行,都按实际判断来写。
- 为什么做:属于「对外发布的技能包教的内容要和运行时一致」这条线,替按技能生成应用的作者和 AI
解决「去调一个已经不起作用的开关、却猜不到检查什么时候报」的问题。
- 出错会怎样:只改技能文字和一条变更说明,不动检查本身;写错的话作者读到的仍是一段不准的说明,直接回退这个 PR 即可。
- 要你做什么:无。

## What changes

State at head `a5ea2daa9` (one commit on `origin/main` `c30ce97cd`).
Text only, in the published catalog; the rule ids and the lint are
unchanged.

`skills/objectstack-data/references/lint-rules.md`, the three "Catches"
cells:

- `relationship/line-items-inline-edit`: was "a `*_line`/`*_item`
master_detail child without `inlineEdit`"; now "a `*_line`/`*_item`
master_detail child placed by no parent field group
(`fieldGroups[].relatedList`)".
- `relationship/inline-edit-needs-bulk`: was "`inlineEdit` while the
parent's or child's `enable.apiMethods` omits `'bulk'`"; now "a child a
group places while the parent's or child's `enable.apiMethods` omits
`'bulk'`".
- `relationship/association-inline-edit`: was "an association
(comment/audit/activity) marked `inlineEdit` (clutters the parent form —
use a detail-page related list)"; now "an association
(comment/audit/activity) a group places (leave it a tab)".

`skills/objectstack-data/rules/field-types.md`, seat-added scope (seat
comment 7073941454 on PR objectstack-ai#36250), the `repeater` row: "a typed list is a
child object (`master_detail`, `inlineEdit: 'grid'`)" becomes "a typed
list is a `master_detail` child a parent `fieldGroups[].relatedList`
names". Three punctuation trims in the same section pay for it (the
section's intro line and the `composite` and `repeater` rows: an em dash
becomes a comma or a colon, two spaced slashes close up); no teaching is
removed.

Changeset `.changeset/36252-lint-rules-field-group.md`:
`@objectstack/skills` patch.

This agrees with the rule that PR objectstack-ai#36250 teaches in
`rules/relationships.md`: a parent field group naming the child places
it in the record details and the entry form, and `inlineEdit` only picks
how the rows are edited.

<details><summary>Each claim against the lint source (origin/main
c30ce97)</summary>

- None of the three rules reads `inlineEdit`. In
`packages/lint/src/data-model-rules.ts` the word occurs only in comments
and in one unrelated `fix` string (see Acceptance notes).
- R5, `relationship/line-items-inline-edit` (severity `suggestion`):
fires on a `master_detail` field of an object whose name matches
`LINE_ITEM_RE` when `isGroupPlaceableRelationship(def)` holds and
`formInlines(...)` is false. `formInlines` is
`isGroupPlaceableRelationship(def)` and
`fieldGroupsPlaceRelationship(parent.fieldGroups, child, field)`, which
reads each parent group's `relatedList` (a bare child name, or
`object.field`). Its `fix` line adds a `relatedList` group to the
parent's `fieldGroups`.
- `lintInlineEditBulk`, `relationship/inline-edit-needs-bulk` (severity
`warning`): for every group-placeable relationship that a parent field
group places, it warns once per object, parent or child, whose declared
`enable.apiMethods` does not allow `bulk`.
- R6, `relationship/association-inline-edit` (severity `warning`): fires
on a relationship of an association-named object when `formInlines(...)`
is true, i.e. a parent field group places it. Its message says to leave
it a tab of the record page; its `fix` removes the group.
- `repeater` row: the spec's own route sentence for a typed list
(`EMBEDDED_JSON_TYPED_LIST` in
`packages/spec/src/data/authoring-key-lint.ts`) reads: a child object
whose `master_detail` field points back at this object; a field group on
this object whose `relatedList` names that child edits its rows as an
inline grid on this object's form.

</details>

## Evals

No eval case pins the old wording, so none is changed. Searched
`skills/*/evals/*.json` for the three rule ids, for the old cell
wording, and for `repeater` and "typed list": zero hits. Three cases
mention `inlineEdit` for other reasons (objectstack-data case 2 and
objectstack-ui views case 6, both rewritten by PR objectstack-ai#36250; objectstack-ui
record-page case 1, see Acceptance notes). No eval round was run (a
round is the eval seat's).

## Tests

All readings at head `a5ea2daa9`.

<details><summary>Token ratchet, size and line budget</summary>

- `skills/objectstack-data/references/lint-rules.md`: 49 lines and 3735
bytes before, 49 lines and 3736 bytes after; 934 tokens before and after
(ceiling 934, headroom 0).
- `skills/objectstack-data/rules/field-types.md`: 267 lines and 14163
bytes before, 267 lines and 14162 bytes after; 3541 tokens before and
after (ceiling 3541, headroom 0).
- Whole package: every `SKILL.md` summed is 4947 lines before and after
(none is touched); the ratchet's bundle total is 288824 tokens after,
and the same before by the per-file identity above (both files keep
their token count; the before total was not run separately).
- `node scripts/check-skills-token-ratchet.mjs`: exit 0, "60 authored
bundle file(s) within their ceilings". No ceiling row is moved.
- Diff: 3 files, +16 / -6; net added lines 10 (changeset 10, skills 0),
inside the card's budget of 12.

</details>

<details><summary>Derived gates and the skill-evals test</summary>

- `node scripts/pm/dispatch-gates.mjs --commands`: 48 commands. All 48
ran under `os-verify-lock.sh`; 43 answered exit 0 on the first pass, and
5 answered exit 3 (PREREQUISITE NOT MET, nothing built yet):
`check:doc-formula-expressions`, `check:dts-closure`,
`check:dual-build-cjs-loads`, `check:lean-entry-closure`,
`check:sourcemap-no-sources-content`. After `pnpm build` (120 tasks
successful) the same five commands answered exit 0.
- `--ran` reconciliation: "48 derived famil(ies) accounted for, 48 run,
0 NOT-MEASURED", exit 0.
- `pnpm --filter @objectstack/scenarios exec vitest run --maxWorkers=2
test/skill-evals/skill-evals.test.ts`: Test Files 1 passed (1), Tests 38
passed (38); lock line `VERDICT command-exit 0`.
- `node scripts/pm/overlap-check.mjs
--branch=claude/issue-36252-lint-rules-field-group`: `VERDICT clean exit
0`; PR objectstack-ai#36158 shares `rules/field-types.md` and merges cleanly with this
branch.
- No ablation: the diff changes no behaviour a test pins.

</details>

## Acceptance notes

- Precision limit, declared: the `line-items-inline-edit` cell does not
spell the rule's one precondition, that the FK is one a group may place.
A line-item FK that itself declares `relatedList: true` or `false` is
never flagged, because a group naming it would be refused. The cell
stays at the table's summary level, like its `*_line`/`*_item` shorthand
for the ten suffixes the lint matches.
- The `line-items-inline-edit` cell uses the file's one byte of headroom
(3735 to 3736 bytes, 934 tokens either way). The `field-types.md` edit
is one byte smaller than before, so PR objectstack-ai#36158's measured row for that
file cannot be pushed up by this change.
- Out of scope, not changed here (lint source):
`packages/lint/src/data-model-rules.ts`, the `fix` line of
`field/embedded-sub-fields`, still says to make the typed list a child
object and that `inlineEdit: 'grid'` edits it inline. The spec's route
sentence and that rule's explanation text already name the parent field
group. Read, not run.
- Out of scope, not changed here (skills, same family):
`skills/objectstack-data/rules/relationships.md` § Detail-page related
lists and `skills/objectstack-ui/rules/record-page.md` item 2 still
teach that a `master_detail` child with no `relatedList` is a body table
by default, and objectstack-ui eval `record-page.json` case 1 expects
that answer. `packages/spec/src/data/related-list-body-table.ts` says it
is a tab by default and a body table only when a parent field group
names it. Read against the spec source, not run.

## Verification

Read first, by risk:

1. `skills/objectstack-data/references/lint-rules.md`, the three changed
rows (the published claim about when each rule fires).
2. `skills/objectstack-data/rules/field-types.md`, the `repeater` row
and the two byte-paying lines beside it.
3. `.changeset/36252-lint-rules-field-group.md`.

Two-minute check: `node scripts/check-skills-token-ratchet.mjs` exits 0
and prints `lint-rules.md 934 / 934 (+0)` and `field-types.md 3541 /
3541 (+0)`; then `grep -c "inlineEdit"
skills/objectstack-data/references/lint-rules.md` prints `0` (it printed
`3` on `origin/main` `c30ce97cd`; the rule ids are spelled `inline-edit`
and are unchanged).

---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5kDGa1ViantgrfH797)_

Co-authored-by: Claude <noreply@anthropic.com>
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 23, 2026
…child list still shows on a declared tab list (objectstack-ai#36527)

<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9WF2JA4aXQRy81L1mg6vYtR)_

Fixes objectstack-ai#35902
Clause-②: no
Metadata-protocol: none

## 维护者速读

- **用户能看到什么变化**:用 AI 搭建应用的人,让自己的扩展包给别人的对象加字段或子表时,AI
现在会写明它们排在哪个字段、哪个页签后面;技能和指南不再说「别的包加的子表会被隐藏」;CRM 示例的客户对象演示了页签清单和分组自己列字段。
-
**为什么做**:属于「记录页的页签和字段分组改由父对象一处声明」专题:平台的四种新写法都已合并,这一批补上最后一种(扩展包声明位置)的技能、指南、评测和示例,免得「做了没人知道」。
- **出错会怎样**:AI 可能没写位置或写错,扩展包带来的字段和页签就按默认排在末尾,不丢数据;撤回只需回退这一次合并。
- **要你做什么**:批准合并这份技能与指南的更新。

## What changes

The fourth form of the parent-declared record page, an extension's
`place`, reaches the skills, the guide and an eval; the sentence that
said another package's child list is hidden goes; one repository example
declares a tab list.

| File | Change |
|:--|:--|
| `skills/objectstack-data/SKILL.md` § Object Extension Model |
`defineObjectExtension` takes `place`. One example with a field entry
and a list entry, the group form `{ group: { key, label }, after }`,
`before` as the other anchor, and the condition: placement applies where
the target declares `fieldGroups` / `relatedLists`. |
| `skills/objectstack-ui/rules/record-page.md` step 2 | "A child list
another package adds is hidden by a `relatedLists` that does not name it
(no package places its own list yet)" becomes "still shows, after the
named lists or where its extension's `place` puts it
(objectstack-data)". |
| `skills/objectstack-data/evals/objects-fields-relationships.json` case
26, `evals/README.md` | An add-on package puts its Tax ID field after
Industry in the account's Basic group and its Contracts tab after
Opportunities, on an account whose tab list names another child list
after Opportunities, so a missing list placement draws a different page.
Expected: two `place` entries on the package's own extension, no
redeclared `crm_account`, no `overrides:`. |
| `content/docs/ui/pages.mdx`, record page section | The same sentence
corrected (shows where the extension places it, or at the end of the
tabs, before approvals and the activity stream); a paragraph and a
checked `defineObjectExtension` example for `place`, linking the
object-extensions guide, which already documents the key. |
| `examples/app-crm/src/objects/account.object.ts` | `fieldGroups`
listing each group's `fields`, and `relatedLists` naming every tab in
order, one entry with its own `columns`, the two built-ins by object
name. |
| `examples/app-crm/src/translations/crm.translation.ts` | zh-CN labels
for the two new groups. |
| `.changeset/35902-skills-extension-place.md` | New,
`@objectstack/skills` patch. |
| `.changeset/35902-skills-related-lists-tabs.md` | DELIBERATE
CORRECTION, see below. |

What the skills already taught before this change, and is not in the
diff: the tab list with the three built-ins, an entry's `label` /
`columns`, a group's `fields`, and the group that places a child table,
each with its example and its eval (record-page evals 1, 4, 5, 6), and
the repository examples of a group placing a child table (the showcase
invoice, the CRM example's opportunity).

**DELIBERATE CORRECTION of a pending release note.**
`.changeset/35902-skills-related-lists-tabs.md` is on main and
unreleased. Its first bullet said: "A child list another package adds is
hidden by a `relatedLists` that does not name it." The platform change
that let a package place its own list made that false before any release
carried it. The sentence now reads: "A child list another package adds
still shows, after the named lists or where that package's extension
places it." Nothing else in the note changed. `Check Changeset` is red
on this by design; no `skip-changeset`.

### Skill size readings

| | main `316f7571` | This head |
|:--|:--|:--|
| `skills/objectstack-data/SKILL.md` | 473 lines · 26,832 bytes · 6,703
tokens (ceiling 6,710) | 473 lines · 26,858 bytes · 6,710 tokens
(ceiling 6,710, not raised) |
| `skills/objectstack-ui/rules/record-page.md` | 64 lines · 3,952 bytes
· 988 tokens (ceiling 991) | 64 lines · 3,958 bytes · 990 tokens
(ceiling 991, not raised) |
| All 14 `SKILL.md` files | 4,950 lines · 261,027 bytes | 4,950 lines ·
261,053 bytes |
| Ratcheted (authored) tokens | 197,533 | 197,542 |
| Eval fixtures (measured, not ratcheted) | 78,177 | 78,658 |
| `skills/**`, 114 files | 1,172,198 bytes | 1,174,155 bytes |

The data skill's entry file had 7 tokens of headroom and the `place`
paragraph costs about 75, so the rest is paid in the same file by
shorter wording, no ceiling moved. Every inline code span and every link
of the file on main is still in it (compared by script), except the one
signature that gained `place`. What the shorter wording no longer says,
all prose: "on 31/31 objects in the reference apps" (twice, on
`pluralLabel` and `icon`; the instruction to author both stays), "the
fundamental data entity in ObjectStack", the lead-in "The full table,
per-type config and traps" (the link stays), "stored and read ... on the
record" in the multi-value lookup note, "range" before `0–999`,
"incorrect/correct" before "examples", and "This axis is distinct from
`ownership`, which decides" (now "`ownership` is a separate axis").

## Tests

- No runtime behaviour changes, so no ablation.
- **The taught shapes parse.** The skill's example, its group form, the
guide's example and a `before` entry go through the built spec's
`defineObjectExtension`: 4 of 4 accepted. Control leg: an entry with
both `after` and `before`, and an entry with a misspelt key, are both
refused, so an accept is a measurement.
- `pnpm --filter @objectstack/spec run check:skill-examples`: exit 0,
`349 prose examples type-check across 3 surface(s)`, the guide's new
block among them, against a spec built at this base (full build under
the verify lock, `VERDICT command-exit 0`).
- **The example app.** `@objectstack/example-crm`: `typecheck` exit 0;
`test` 7 files, 51 tests passed (under the verify lock, `VERDICT
command-exit 0`); `validate` "Validation passed", no warning.
- **Eval token reachability.** `node
ui/scripts/check-skill-eval-tokens.mjs`: exit 0, "Every must_contain
token is taught by its own skill bundle."
- **Skill evals: NOT MEASURED.** No eval round ran here. The card's
"four eval cases pass" and the new case 26 are owed a round: `pnpm
--filter @objectstack/scenarios skill-evals --skills
objectstack-data,objectstack-ui`.

## Acceptance notes

1. **This slice is the card's last.** Item 5 of the card (HotCRM
declares `relatedLists` on its five main objects) lives in another
repository and is carried by objectstack-ai/hotcrm#2742, which the seat
filed from the hand-off on the card (comment 7082792445); it waits for a
release that carries these keys. Seat record: card comment 7083107636.
2. **Overlap.** `overlap-check` at this head exits 1 on two open pull
requests. The draft that turns the data skill's entry file into a
router, objectstack-ai#36158, rewrites `skills/objectstack-data/SKILL.md` whole: this
pull request does not wait for it (the seat's call), and whichever lands
second merges main and replays its entry-file text. If the router lands
first, the `place` paragraph belongs in `references/examples-objects.md`
§ Object Extension Model, where that draft moves the section, and the
wording payments here are dropped. The release pull request (`chore:
version packages`) deletes every pending note, so a corrected pending
note conflicts with it by construction; the release job regenerates it
from main.
3. **A `relatedLists` entry's `label` has no translation key that I
could find.** The CRM example's entries carry no `label` for that
reason. Read from `packages/spec/src/system/translation.zod.ts`: it has
`relatedListTitle` under the child's field and `_sections` for groups,
and no key for a tab-list entry's `label`. The console's reading was not
traced and nothing was reproduced at run time. The seat filed the
observation as objectstack-ai#36528.
4. **The example lives in the CRM example, not the showcase.** The
showcase account's record page is pinned by an end-to-end shape test,
and the CRM example's account had neither key.
5. **The multi-value lookup note keeps its `{record.tags.0}` token.**
The router draft above records that the automation skill refuses that
token in a value slot and corrects it; this change only shortened the
sentence around it.
6. **Merging ends the card while its eval done-when is unmeasured.** The
round named under Tests is owed; the seat filed objectstack-ai#36535 as its carrier,
for the eval lane to run on main after the merge.
7. **Guide example.** The record page section of the guide carries the
full Quote example from the parent card already; this change adds the
extension half beside it.

## Verification

**Read first, by risk:**

1. `skills/objectstack-data/SKILL.md`: the payments. Risky hunk: the
Object Extension Model guard, where "`extend` is not object-level
`ownership`" replaced a longer sentence; the four enum values stay.
2. `skills/objectstack-ui/rules/record-page.md` step 2: one sentence
flips from "hidden" to "still shows".
3. `examples/app-crm/src/objects/account.object.ts`: the declared tab
list names all four child lists, so no tab the page had is dropped.

**Two-minute check:** `node scripts/check-skills-token-ratchet.mjs`.
Expected: the last line reads `✓ check-skills-token-ratchet: 60 authored
bundle file(s) within their ceilings`, and the two changed rows read
`6710 / 6710` and `990 / 991`.

**Head `8c346d66`**, two commits. The readings below were taken at
`b9cdb233`; the second commit, from the contract review's finding S1,
changes one eval fixture (the prompt's tab list and one sentence of the
expected answer) and one comment in the CRM example. Re-run at
`8c346d66`: `check-skills-token-ratchet` exit 0,
`ui/scripts/check-skill-eval-tokens.mjs` exit 0, `check-nul-bytes` exit
0, the CRM example's `typecheck` exit 0. Exit codes captured before any
pipe.

**Derived list.** `node scripts/pm/dispatch-gates.mjs --commands`
printed 90 commands. All 90 ran at `b9cdb233`: 89 exit 0, 1 exit 1. The
exit 1 is `node scripts/check-empty-changeset.mjs --base origin/main`,
red by design on the corrected pending note (DELIBERATE CORRECTION
above); its other half reads "No empty-frontmatter changeset introduced
by this diff (2 declaring changeset(s) added)".

Reconciliation: `✓ dispatch-gates --ran: 90 derived famil(ies) accounted
for — 90 run, 0 NOT-MEASURED (a DERIVED zero — all 90 recorded an exit
code and none of them is 3).`

The dist-reading gates in that list read a full build of this tree
(`pnpm build`, 13m40s, `VERDICT command-exit 0`). The build ran before
the last wording edits to the two skill files and the guide; none of
those files is a build input of the packages the gates read, and the
gates themselves ran after the final commit.

**Outside the derived list:** `node scripts/pm/overlap-check.mjs` exit 1
(Acceptance note 2); the example app's three commands and the eval-token
check under Tests.

**Not run locally, CI's:** the type-check lanes, `Build Core`, `Test
Core`, the repo lint, the docs build.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01ADHkmTSjgh1xF2oiht7G2Z)_

<!-- signed: repo:objectstack#2 · os-steve ·
session_01ADHkmTSjgh1xF2oiht7G2Z -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
… relocated text; ratchet rows not yet re-pinned

Claude-Session: https://claude.ai/code/session_01QSeKYoBFwgPdc8gN56sREh
Co-authored-by: Claude <noreply@anthropic.com>
… nine rows re-pinned at the measurement

Main's additions to the two entry files since the branch point (the colour row, fieldHistory, an
extension's place, the paired .custom arrangement, showOnCreate, the option-label and subflow
corrections) now sit at their relocated homes, so the receiving files grew. Paid inside the moved
text by cutting sentences that restate what the entry's traps and served sections say, two long
table separators, and connective text; the insert-null note leaves the entry as it left main's.
The sum of ceilings is 23 tokens under main's, every moved row at zero headroom.

Claude-Session: https://claude.ai/code/session_01QSeKYoBFwgPdc8gN56sREh
Co-authored-by: Claude <noreply@anthropic.com>
…ome; two pointers name where their sections moved

Main's Validation Patterns ended with the clause that a state machine's transitions keys and
values are option values, never labels; no file of the bundle said it after the move and no
publish check covers it. It is one sentence of rules/validation.md § State Machine Validation.
The Prerequisite pointer in examples-flows.md and the Assignment rules pointer in
state-machines-and-approvals.md name the sections' homes instead of SKILL.md. Rows re-pinned:
validation.md 3466, examples-flows.md 6551; the sum of ceilings is 203,009 against main's 203,016.

Claude-Session: https://claude.ai/code/session_01QSeKYoBFwgPdc8gN56sREh
Co-authored-by: Claude <noreply@anthropic.com>
Main's entry said defineStack errors unless the stack declares requires: ['hierarchy-security'];
the routed home kept only that the capability is needed. rules/security.md now names the refusal
and its code (STACK_HIERARCHY_SCOPE_CAPABILITY_REQUIRED, read off packages/spec/src/stack.zod.ts
and the runtime authoring gate), paid inside the file by two restatement cuts; the row is
re-pinned at 4771, three tokens below the ceiling this PR had asked for.

Claude-Session: https://claude.ai/code/session_01QSeKYoBFwgPdc8gN56sREh
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 8fbebd2797f62b61f2dd2cbc1bd251480d8fafe1
Local-runs: probe — byte counts of the ten skill blobs at main and at the head (git cat-file -s) and the sum of the ratchet rows read from both blobs, for ruling ④A; nothing built, tested or re-run
Scope: skills/objectstack-automation/SKILL.md, skills/objectstack-automation/references/examples-flows.md, skills/objectstack-automation/references/integration-recipes.md, skills/objectstack-automation/references/state-machines-and-approvals.md, skills/objectstack-data/SKILL.md, skills/objectstack-data/references/examples-objects.md, skills/objectstack-data/rules/field-types.md, skills/objectstack-data/rules/relationships.md, skills/objectstack-data/rules/security.md, skills/objectstack-data/rules/validation.md + scripts/check-skills-token-ratchet.mjs
Security-touching: yes
Rule-change-verified: none

Full review of PR #36158 (card #34770) on this head, isolated from the build. Inputs: the card and all 23 of its comments (ruling 7128031203, dev reports 7151308696 and 7153988410 among them), the PR, its net diff against main, and the 45 check-runs on the head. The diff is read against main at 1b91538b; main has not moved on any path of this diff since the merge base d15e4391. The PR body is stale and was not graded.

① Derived judgments

  • Accept set, schema. No packages/spec/src path, no key, value or refusal moves. Clause-②: no and Metadata-protocol: none are right.
  • Published surface. The two entry files become routers: objectstack-data/SKILL.md 26,854 → 8,902 bytes, 165 lines; objectstack-automation/SKILL.md 28,198 → 8,973 bytes, 181 lines; lines 1–17 byte-identical to main in both. Inside the card's budget (6–9 KB, 500 lines). Right.
  • Anchors. The anchors that leave the two entries are listed in the changeset; the two that other skills link (#conditional-field-rules, #failure-routing--runas) are still there. Right.
  • Hosted served sections (packages/spec/scripts/skill-served-sections.json, not in the diff). I checked 20 headings in the six touched files that carry one: the eleven served ones in the two entries, the linked Conditional Field Rules and the bound Access depth … beside them, Time-relative triggers …, the four approval sections, State Machine Validation, Roll-up Summaries. Each occurs once, at main's level. Shorter text under the eleven is ruling ①A. Two served sections changed in round 3 and are no longer byte-identical to main: Time-relative triggers … (3 bytes, the pointer) and State Machine Validation (the restored clause); headings and JSON fences untouched. Right.
  • Ratchet rows (ruling ④A). From the blobs:
Row File bytes main → head ceil(bytes / 4) Row main → head
objectstack-data/SKILL.md 26,854 → 8,902 (8,882 priced) 2221 6710 → 2221
objectstack-automation/SKILL.md 28,198 → 8,973 (8,953 priced) 2239 7045 → 2239
data/references/examples-objects.md 6,892 → 14,338 3585 1728 → 3585
data/rules/field-types.md 14,156 → 16,748 4187 3541 → 4187
data/rules/relationships.md 16,765 → 17,325 4332 4203 → 4332
data/rules/security.md 17,168 → 19,082 4771 4292 → 4771
data/rules/validation.md 11,031 → 13,861 3466 2761 → 3466
automation/references/examples-flows.md 6,170 → 26,203 6551 1543 → 6551
automation/references/integration-recipes.md 10,379 → 12,222 3056 2595 → 3056
automation/references/state-machines-and-approvals.md 23,734 → 23,743 5936 5936, not raised

(a) Every raised row equals its measurement, zero headroom. (b) All 60 rows sum to 203,016 on main and 203,006 on the head (−10); the nine moved rows 34,418 → 34,408. Only the nine moved rows differ from main. Right as arithmetic; what the security.md row is made of is S3 and S4 below.

  • Teaching that changed instead of moving. (i) The multi-value lookup note shows record.tags[0] where main showed {record.tags.0}: right, it is the spelling objectstack-automation teaches on main. (ii) rules/security.md § Access depth gains a refusal sentence that main does not have: wrong, S3. (iii) rules/security.md loses two glosses main has: S4.

② Semver level

One changeset, '@objectstack/skills': patch, with Clause-②: no and Metadata-protocol: none. It matches what the diff publishes (skill prose; the ratchet script is not published). Check Changeset is green.

③ Boundary flags

  • Round 3 may have run partly below tier, so every round-3 hunk was read, not a sample. Commits after 71540330: the merge d8298889 touches none of this PR's files; 76f014c9 has three text hunks (the two pointers, the transitions clause), all hold; 8fbebd27 has three, all in rules/security.md, and they are S3 and S4. The ratchet rows both commits moved are in the table above.
  • S1: closed. rules/validation.md § State Machine Validation now reads "transitions keys and values are option values, never labels", main's clause, in a section the hosted door serves.
  • S2: closed. examples-flows.md says "§ Prerequisite above" and that heading is line 223 of the same file; state-machines-and-approvals.md says "examples-flows.md § Assignment rules" and that heading exists. SKILL.md § Failure routing in the approvals file is still a real home.
  • Dev deviation, the extra fix beyond the round's two items (report 7153988410): it is where both findings sit.
  • Dev deviation, the flow-shape harness is uncommitted. Its count was not re-run. By reading: the three cron spellings in the automation bundle each carry a timezone; the only label-shaped comparison is the one the text names as refused at publish; "parses, matches no row and never fires" is gone.
  • Open question, landing order (both reports): answered. The seat already holds edits to the two entry files until this PR lands, which is the dev's first answer; nothing to escalate.
  • Open questions of report 7151308696, pointers and pay-down: the pointers are fixed (S2). The three lead-ins turned into one-line pointers are each stated by the entry's trap 1, 2 or 3; accepted as built.
  • PR body. It still opens Fixes #34770; ruling 7128031203 makes the first line Part of #34770. The zone refreshes it before the PR is readied.
  • Eval after-round (ruling ②A). It was aimed at this head. The fixes below move the head, so the round runs on the next one.
  • SQL push-down: no code in the diff; nothing to judge.
  • Author: objectstack-fleet[bot]. Check-runs on the head: 45, 29 success, 16 skipped, none failing, none pending.
  • Landing tier: H either way (the ratchet script is in the diff, and this record reads Security-touching: yes: the moved text teaches readScope / writeScope, ownership queues, runAs elevation and identity assignment).

④ Design judgment

S3 (must-fix) — rules/security.md § Access depth teaches a refusal the runtime does not make. The head says: "defineStack, a save and a publish refuse a hierarchy-relative grant the stack does not declare (STACK_HIERARCHY_SCOPE_CAPABILITY_REQUIRED)". main's entry said only that defineStack errors unless the stack declares requires: ['hierarchy-security']. Read against main's code:

  • packages/spec/src/stack.zod.ts (validateHierarchyScopeCapability, error class at line 4272): defineStack refuses with that code when requires omits the token. This third holds.

  • packages/metadata-protocol/src/protocol-authoring-gate.ts (the evt.state !== 'active' branch): "no rule gates a draft"; a draft save answers 2xx with the finding as a warning. A save is not refused.

  • packages/metadata-protocol/src/runtime-authoring-gate.ts (findHierarchyScopeCapabilityGaps): the publish refusal is rule hierarchy-scope-capability-required inside the 422 INVALID_METADATA envelope, and its condition is that no hierarchy resolver is mounted on the runtime, a fact of the deployment, not the stack's requires line. Neither the code nor the condition in the sentence is the publish door's.

    An author who reads this and sees a draft save succeed can conclude the grant is declared and enforced, while it fails closed to own. The row comment in the ratchet script calls the file's growth "no new teaching"; this sentence is new teaching. Fix: say what each door does (defineStack refuses with the stack code when requires omits the token; a publish on a runtime with no resolver is refused hierarchy-scope-capability-required; a draft save warns), or go back to main's one clause.

S4 (should-fix) — the cut that pays for S3's sentence deletes teaching, not restatement. In the sharing bullet of rules/security.md, main glosses the three RESOURCE_CONFLICT reasons: outside-closure "(only a non-dependency or an environment item holds …)", ambiguous-in-closure "(two dependencies do)", ambiguous-in-environment "(the one it reaches and a non-dependency do)". The head keeps the middle gloss and drops the other two (−107 bytes). The report calls them "already stated by the bullet above"; the bullet above is the choose-by-key list and states neither, and no other file of objectstack-data names these reasons at all (objectstack-automation glosses them for an assignment rule and an approver, with a different environment case). The position bullet's "(the environment: a set authored in Setup; …)" now explains a case the queue bullet no longer mentions. This matters for ④A: restoring the 107 bytes alone puts the row at 4798 and the sum 17 tokens above main's, so condition (b) holds on this head only through this cut. Fix: restore the two glosses and pay with a real restatement, or take the remainder to the maintainer as ④A's last clause says. The second cut ("The two closure refusals are as for a queue above") is fine once the glosses are back.

Nothing-lost sweep. I read main's two entry files sentence by sentence against the head's two entries and the seven receiving files, and ran a span scan as a cross-check (data: 6 of 249 code spans absent from the head bundle; automation: 3 of 331; the sets the dev names). I found no third lost trap. Because the sweep ran against main's current entries, it also covers every later main edit to the moved text, PR #36932's among them: item 4 is split in main's words (the half no check reads stays in the entry; the half publish refuses is in "Value slots and the other silent traps — the rest", item 3), and the subflow row, the Flow Types and Control Flow tables, the color, fieldHistory, trackHistory rows, place, the paired .custom arrangement and showOnCreate are main's text. In the files this PR only adds to, the diff against main shows this PR's insertions and nothing else, apart from S4's cut and the pointer edits.

Not carried, and why it holds:

  • The label, datasource, displayNameField, searchable, apiEnabled, files, clone rows: each key and default is in packages/spec/src/data/object.zod.ts, which the entry's third check points at.
  • titleFormat: refused by name at save and os validate, as main itself says. The object-level permissions / hooks keys: refused at parse.
  • Moved to homes that already existed, each checked in the head bundle: the name pattern (rules/naming.md), field.columnName (rules/datasources.md), the optional master under controlled_by_parent (rules/relationships.md), the six rule types and the update-only machine (rules/validation.md), the index surface (rules/indexing.md), the append-only rule (rules/lifecycle.md), the credential hand-off (references/integration-recipes.md).

Growth is moved text (④A (a)). Every added line of the seven receiving files is a sentence or row of main's entries, verbatim or split with the entry, plus one-line "Beyond SKILL.md § …" connectives. The one exception is S3's sentence.

Pay-down cuts. The 17 earlier ones are content-preserving: the three lead-ins are stated by traps 1–3; the value-slot and text-slot lists in "the rest" are the exact complements of the entry's lists (their union is main's list); the sweep and fault-edge clauses are the entry's bullets; the insert-reads-null sentence is main's own removal; the rest is separators and connectives. Of the two cuts this round, one is S4.

Per file.

File Holds?
objectstack-data/SKILL.md Yes. Each compressed statement matches main's text (security-owd-unset, renamedFrom, the four sharingModel values, initialStates).
objectstack-automation/SKILL.md Yes. The seven served sections keep their declared forms; item 4 carries PR #36932's wording.
references/examples-objects.md Yes.
rules/field-types.md Yes.
rules/relationships.md Yes.
rules/validation.md Yes (S1 closed here).
rules/security.md No: S3, S4. The moved Ownership queues section and the rest of Access depth are main's text.
references/examples-flows.md Yes. The two long examples are byte-identical but for the S2 pointer.
references/integration-recipes.md Yes; both added sections are verbatim.
references/state-machines-and-approvals.md Yes (one pointer).
scripts/check-skills-token-ratchet.mjs Rows agree with the blobs. The security.md row comment is wrong where S3 and S4 are.

Nits (no effect on correctness or the contract):

  • "§ Prerequisite above" sits in a section the hosted door serves alone, where "above" names nothing; a file-qualified pointer would locate itself. The cloud repoint (cloud hosted skills door: repoint the eleven served sections of objectstack-data / objectstack-automation SKILL.md when the pin bump carries the router change #36934) can absorb it.
  • The ratchet script gains one comment line inside main's earlier security.md block (ceil(16272 / 4)), and the examples-flows.md row comment counts "three objectstack-automation files" where four are touched.
  • The changeset says "The two skills together did not grow"; at this head the ten files are 50 bytes larger than on main (161,347 → 161,397).
  • The data entry no longer names objectstack-api and objectstack-ui as neighbours (the Skill Boundaries table); the frontmatter names the other three.

Implemented-by: claude/issue-34770-skill-router-budget
Reviewed-by: session_01QSeKYpAquqtjzXJYi4WjeA

VERDICT: FAIL


Generated by Claude Code

…ad as on main

rules/security.md § Access depth said defineStack, a save and a publish refuse an undeclared
hierarchy-relative grant with one code. Only defineStack does (packages/spec/src/stack.zod.ts,
validateHierarchyScopeCapability); a draft save warns and a publish is refused under another
rule and another condition (packages/metadata-protocol/src/runtime-authoring-gate.ts). The
section carries the entry's own clause again: defineStack errors unless the stack declares
requires: ['hierarchy-security'].

The sharing bullet's `outside-closure` and `ambiguous-in-environment` glosses are back, byte
for byte; that bullet no longer differs from main. Paid inside the file: "paid" leaves "the
paid plugin goes in plugins[]", which SKILL.md § Access depth states with the plugin's name.

The row is re-pinned at its measurement, 4771 -> 4781 (19123 bytes); the 60 ceilings sum to
203016, the sum on main.

Claude-Session: https://claude.ai/code/session_01QSeKYmgNasqCR9aajfRjJK
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 1a90f70dcf5751624a8df2d49df6df9c5aa30fb4
Local-runs: probe — byte counts of the ten skill blobs at main and at the head (git cat-file -s) and the sum of the ratchet rows read from both blobs, for ruling ④A; nothing built, tested or re-run
Scope: skills/objectstack-automation/SKILL.md, skills/objectstack-automation/references/examples-flows.md, skills/objectstack-automation/references/integration-recipes.md, skills/objectstack-automation/references/state-machines-and-approvals.md, skills/objectstack-data/SKILL.md, skills/objectstack-data/references/examples-objects.md, skills/objectstack-data/rules/field-types.md, skills/objectstack-data/rules/relationships.md, skills/objectstack-data/rules/security.md, skills/objectstack-data/rules/validation.md + scripts/check-skills-token-ratchet.mjs
Security-touching: yes
Rule-change-verified: none

Delta over record 7157718394 (FAIL on 8fbebd27), by the same reviewer. Read: the one commit since, 1a90f70d, which touches skills/objectstack-data/rules/security.md and scripts/check-skills-token-ratchet.mjs and nothing else; the fix-round report 7159632810 on card #34770; the 45 check-runs on this head. The other nine files in scope are byte-identical to the head record 7157718394 read, so its judgments on them stand. main (now 4ed453dc) has still not moved on any path of this diff since the merge base d15e4391.

① Derived judgments

  • rules/security.md § Access depth. The three-door sentence and its error code are gone. The section now says "defineStack errors unless the stack declares requires: ['hierarchy-security']", which is main's own clause from the entry and holds against packages/spec/src/stack.zod.ts (validateHierarchyScopeCapability). No statement about a save or a publish remains. Right.
  • rules/security.md, the sharing bullet. The outside-closure and ambiguous-in-environment glosses are back; that bullet has no hunk against main. Right.
  • Ratchet rows (ruling ④A), from the blobs. Only the security.md row moved this round: file 19,082 → 19,123 bytes, ceil(19,123 / 4) = 4781, row 4771 → 4781. The other eight moved rows and their files are unchanged from the table in record 7157718394, and state-machines-and-approvals.md still measures its unraised 5936. (a) Every raised row equals its measurement, zero headroom. (b) All 60 rows sum to 203,016 on main and 203,016 on this head; the nine moved rows 34,418 → 34,418. The sum does not rise. Right.
  • Accept set, schema, served sections, anchors: untouched by this commit.

② Semver level

Unchanged: '@objectstack/skills': patch, Clause-②: no, Metadata-protocol: none. The commit adds no publishing change. Check Changeset is green on this head.

③ Boundary flags

  • S3: closed. The false refusal sentence is removed and replaced by main's clause; the row comment's "no new teaching" is true again and names the clause.
  • S4: closed. The two glosses are restored byte for byte, so the cut that paid for S3's sentence no longer exists.
  • Report 7159632810 raises no open question. Its deviations: the derived gate list and check:skill-examples were not run locally. The check-runs on this head answer both: 45 runs, 29 success, 16 skipped, none failing, none pending.
  • Margin. Condition (b) now holds at equality. security.md has one byte left inside its token, and one more token in any of the nine files puts the sum above main's. The seat's hold on edits to the two entry files until this PR lands is what keeps that from reopening.
  • PR body. By the report it still opens Fixes #34770 and carries an earlier head's numbers; ruling 7128031203 makes the first line Part of #34770. The zone refreshes it before the PR is readied. Not graded.
  • Eval after-round (ruling ②A). Still owed; this head is the one to run it on.
  • SQL push-down: no code in the diff. Author: objectstack-fleet[bot]. Landing tier: H, as before.

④ Design judgment

No must-fix, no should-fix.

skills/objectstack-data/rules/security.md. Its diff against main is now three hunks: the "(§ Ownership queues below)" pointer, the position bullet's "The two closure refusals are as for a queue above", and the two moved sections. Read in full at this head:

  • § Access depth is main's entry text plus the one-line "Beyond SKILL.md § Access depth" connective. Every sentence was in main's entry: the declarative widening (ADR-0057 D1), the owner_id IN (…) resolution, ADR-0016 and plugins[], the defineStack clause, what the CLI reports.
  • § Ownership queues is main's section verbatim.
  • The position bullet names "the two closure refusals" where main spelled the two reason names. With both glossed again in the queue bullet it points at, that is a restatement cut.

The one new cut is a real restatement. "the paid plugin goes in plugins[]" became "the plugin goes in plugins[]" (5 bytes). The entry's § Access depth, which this section opens by naming, says "the other three need the paid @objectstack/security-enterprise plugin"; main said "paid" once and still does. Nothing else was cut this round.

scripts/check-skills-token-ratchet.mjs. The row and its formula line agree with the blob (19,123 bytes, 4781). The edited comments agree with the measurements: +1,955 bytes, ceiling +489, the six objectstack-data files 92,866 → 90,297, the nine rows 34,418.

Nits (no effect on correctness or the contract). The four in record 7157718394 stand as accepted deviations or follow-ups; the changeset's "did not grow" is now off by 91 bytes over the ten files (161,347 → 161,438). Two new ones: the comment line "sum to 34418, the 34418 before it" reads as a slip for "equal to"; and § Access depth now says "the plugin" while only the entry names it.

Implemented-by: claude/issue-34770-skill-router-budget
Reviewed-by: session_01QSeKYpAquqtjzXJYi4WjeA

VERDICT: PASS


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr

席位核对 — ACCEPT · L1 · head 1a90f70dcf5751624a8df2d49df6df9c5aa30fb4 · 2026-11-25T13:22Z

Zone a4-A, card #34770 (resumed from seat 6's hand-off 7073349136 under ruling 7128031203). Read from the PR's diff, the review records and the check-runs.

  1. Shape. 12 files: the two entry files as routers (data 26,854 → 8,902 bytes; automation 28,198 → 8,973), seven receiving reference/rule files, one pointer in state-machines-and-approvals.md, the ratchet script (nine rows), one @objectstack/skills patch changeset. Frontmatter byte-identical; every served heading present once at main's level.
  2. Ruling ④A. (a) each raised row = ceil(bytes / 4), zero headroom; (b) sum of all 60 ceilings 203,016 = main's — verified by the at-tier review from blobs. Zero margin, so the seat's landing-order A (others' entry-file edits held) matters until this lands.
  3. Reviews. At-tier full review 7157718394 at 8fbebd27: FAIL (S3, S4; S1/S2 closed). At-tier delta 7162900809 on this head: PASS, S3: closed, S4: closed. Security-touching: yes.
  4. Gates. Check-runs on this head: all completed, none failed (Test Core, TypeScript Type Check, Lint & Repo Gates, Build Core, Dogfood Regression Gate, Live E2E UI success).
  5. Body. Refreshed by the zone: first line Part of #34770 (the catalog-size line of the card's done-when is not met), ruling, state and review history at this head.
  6. Owed before merge (ruling ②A). The eval seat's after-round on this head, parity against Eval run · skill-evals objectstack-data + objectstack-automation × 2 arms × 1 rep · 3b4f0b98 · 2026-11-25 · #34770 before round #37235's 21-case baseline. Then Tier H: the seat hands it to the maintainer.

… the seed row names its factory

The after round lost six automation cases on facts the router had moved to
references/examples-flows.md: a flow's type (schedule), the option label
evaluated once per run, the refused {…} token and its CEL envelope, the
assignment rule beside an approval node, and where a flow's start is gated.
They are back in the entry; the two sentences that moved back verbatim leave
the reference. The data entry's seed row names defineSeed() as on main.

Claude-Session: https://claude.ai/code/session_01QSeKYoxcCjgMFvCg22svAv
Co-authored-by: Claude <noreply@anthropic.com>
…s variables; value slots show the CEL spelling

A flow in a project is defineFlow in a *.flow.ts, and its variables are an
array: both sit beside the flow types in the entry again. The value-slot rule
and its reference show the CEL spelling a refused token is given, not the
token. The yes/no literal stands beside the rule that explains it in
rules/field-types.md.

Claude-Session: https://claude.ai/code/session_01QSeKYoxcCjgMFvCg22svAv
Co-authored-by: Claude <noreply@anthropic.com>
The automation entry's row rises to its measurement on the ruling that orders
the flow-shape facts back into it; the reference they left falls; the data
entry's seed row and the yes/no literal in rules/field-types.md are pinned at
their measurements. Without the one ruled raise the ceilings sum under main's.

Claude-Session: https://claude.ai/code/session_01QSeKYoxcCjgMFvCg22svAv
Co-authored-by: Claude <noreply@anthropic.com>
… the whole definition

Both eval rounds on the router showed answers stopping at a plan when the
project held nothing for the first checks to read. One line under First checks
says to state that and still give the definition as code. The data entry pays
for it inside the file; the placeholder example of the filter section reads as
it did before this round. Rows re-pinned at their measurements.

Claude-Session: https://claude.ai/code/session_01QSeKYoxcCjgMFvCg22svAv
Co-authored-by: Claude <noreply@anthropic.com>
…keeps, and the sizes

Claude-Session: https://claude.ai/code/session_01QSeKYoxcCjgMFvCg22svAv
Co-authored-by: Claude <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/xl tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants